package com.blacksheep.mtm.pojo.manager;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbHospitalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TbHospitalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHospitalIdIsNull() {
            addCriterion("hospital_id is null");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIsNotNull() {
            addCriterion("hospital_id is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalIdEqualTo(Integer value) {
            addCriterion("hospital_id =", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotEqualTo(Integer value) {
            addCriterion("hospital_id <>", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdGreaterThan(Integer value) {
            addCriterion("hospital_id >", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("hospital_id >=", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdLessThan(Integer value) {
            addCriterion("hospital_id <", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdLessThanOrEqualTo(Integer value) {
            addCriterion("hospital_id <=", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIn(List<Integer> values) {
            addCriterion("hospital_id in", values, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotIn(List<Integer> values) {
            addCriterion("hospital_id not in", values, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdBetween(Integer value1, Integer value2) {
            addCriterion("hospital_id between", value1, value2, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotBetween(Integer value1, Integer value2) {
            addCriterion("hospital_id not between", value1, value2, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNull() {
            addCriterion("hospital_name is null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNotNull() {
            addCriterion("hospital_name is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameEqualTo(String value) {
            addCriterion("hospital_name =", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotEqualTo(String value) {
            addCriterion("hospital_name <>", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThan(String value) {
            addCriterion("hospital_name >", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_name >=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThan(String value) {
            addCriterion("hospital_name <", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThanOrEqualTo(String value) {
            addCriterion("hospital_name <=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLike(String value) {
            addCriterion("hospital_name like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotLike(String value) {
            addCriterion("hospital_name not like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIn(List<String> values) {
            addCriterion("hospital_name in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotIn(List<String> values) {
            addCriterion("hospital_name not in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameBetween(String value1, String value2) {
            addCriterion("hospital_name between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotBetween(String value1, String value2) {
            addCriterion("hospital_name not between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceIsNull() {
            addCriterion("hospital_province is null");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceIsNotNull() {
            addCriterion("hospital_province is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceEqualTo(String value) {
            addCriterion("hospital_province =", value, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceNotEqualTo(String value) {
            addCriterion("hospital_province <>", value, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceGreaterThan(String value) {
            addCriterion("hospital_province >", value, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_province >=", value, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceLessThan(String value) {
            addCriterion("hospital_province <", value, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceLessThanOrEqualTo(String value) {
            addCriterion("hospital_province <=", value, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceLike(String value) {
            addCriterion("hospital_province like", value, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceNotLike(String value) {
            addCriterion("hospital_province not like", value, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceIn(List<String> values) {
            addCriterion("hospital_province in", values, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceNotIn(List<String> values) {
            addCriterion("hospital_province not in", values, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceBetween(String value1, String value2) {
            addCriterion("hospital_province between", value1, value2, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalProvinceNotBetween(String value1, String value2) {
            addCriterion("hospital_province not between", value1, value2, "hospitalProvince");
            return (Criteria) this;
        }

        public Criteria andHospitalCityIsNull() {
            addCriterion("hospital_city is null");
            return (Criteria) this;
        }

        public Criteria andHospitalCityIsNotNull() {
            addCriterion("hospital_city is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalCityEqualTo(String value) {
            addCriterion("hospital_city =", value, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityNotEqualTo(String value) {
            addCriterion("hospital_city <>", value, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityGreaterThan(String value) {
            addCriterion("hospital_city >", value, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_city >=", value, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityLessThan(String value) {
            addCriterion("hospital_city <", value, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityLessThanOrEqualTo(String value) {
            addCriterion("hospital_city <=", value, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityLike(String value) {
            addCriterion("hospital_city like", value, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityNotLike(String value) {
            addCriterion("hospital_city not like", value, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityIn(List<String> values) {
            addCriterion("hospital_city in", values, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityNotIn(List<String> values) {
            addCriterion("hospital_city not in", values, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityBetween(String value1, String value2) {
            addCriterion("hospital_city between", value1, value2, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalCityNotBetween(String value1, String value2) {
            addCriterion("hospital_city not between", value1, value2, "hospitalCity");
            return (Criteria) this;
        }

        public Criteria andHospitalDisIsNull() {
            addCriterion("hospital_dis is null");
            return (Criteria) this;
        }

        public Criteria andHospitalDisIsNotNull() {
            addCriterion("hospital_dis is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalDisEqualTo(String value) {
            addCriterion("hospital_dis =", value, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisNotEqualTo(String value) {
            addCriterion("hospital_dis <>", value, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisGreaterThan(String value) {
            addCriterion("hospital_dis >", value, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_dis >=", value, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisLessThan(String value) {
            addCriterion("hospital_dis <", value, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisLessThanOrEqualTo(String value) {
            addCriterion("hospital_dis <=", value, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisLike(String value) {
            addCriterion("hospital_dis like", value, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisNotLike(String value) {
            addCriterion("hospital_dis not like", value, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisIn(List<String> values) {
            addCriterion("hospital_dis in", values, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisNotIn(List<String> values) {
            addCriterion("hospital_dis not in", values, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisBetween(String value1, String value2) {
            addCriterion("hospital_dis between", value1, value2, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalDisNotBetween(String value1, String value2) {
            addCriterion("hospital_dis not between", value1, value2, "hospitalDis");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressIsNull() {
            addCriterion("hospital_address is null");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressIsNotNull() {
            addCriterion("hospital_address is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressEqualTo(String value) {
            addCriterion("hospital_address =", value, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressNotEqualTo(String value) {
            addCriterion("hospital_address <>", value, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressGreaterThan(String value) {
            addCriterion("hospital_address >", value, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_address >=", value, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressLessThan(String value) {
            addCriterion("hospital_address <", value, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressLessThanOrEqualTo(String value) {
            addCriterion("hospital_address <=", value, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressLike(String value) {
            addCriterion("hospital_address like", value, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressNotLike(String value) {
            addCriterion("hospital_address not like", value, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressIn(List<String> values) {
            addCriterion("hospital_address in", values, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressNotIn(List<String> values) {
            addCriterion("hospital_address not in", values, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressBetween(String value1, String value2) {
            addCriterion("hospital_address between", value1, value2, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andHospitalAddressNotBetween(String value1, String value2) {
            addCriterion("hospital_address not between", value1, value2, "hospitalAddress");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}